import request from '@/utils/request'

// 分页查询反馈信息
export function getFeedbackPage(params) {
    return request({
        url: '/feedback/page',
        method: 'get',
        params
    })
}

// 新增反馈
export function addFeedback(data) {
    return request({
        url: '/feedback/add',
        method: 'post',
        data
    })
}

// 更新反馈信息
export function updateFeedback(data) {
    return request({
        url: '/feedback/update',
        method: 'post',
        data
    })
}

// 删除反馈
export function removeFeedback(id) {
    return request({
        url: '/feedback/removeById',
        method: 'delete',
        params: {id}
    })
}

// 回复反馈
export function replyFeedback(id, reply, replyUserId) {
    return request({
        url: '/feedback/reply',
        method: 'post',
        params: {
            id,
            reply,
            replyUserId
        }
    })
} 